public class PrintHashCode{
protected static Object[] data = {
new PrintHashCode(),
new java.awt.Color(0x44, 0x88, 0xcc),
new SomeClass()
};
public static void main(String[] args){
System.out.println("About to hashCode" + data.lenght + "objects.");
for(int i=0; i<data.lenght; i++){
System.out.println(data[i].toString() + ">--->>" + data[i].hashCode());
}
System.out.println("All done.");
}
}
